<?php
namespace plugin\laoha\app\validate;

use think\Validate;

class CommentValidate extends Validate
{
    protected $rule =   [
        'content'   => 'require',
    ];

    protected $message  =   [
        'content.require'   => '内容必须',
    ];

    
    protected $scene = [
        'create' => ['content'],  //必须
        'update' => ['content'],  //必须
    ];
}
